home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Examples / AppKit / Backspace / convertToBackOs < prev    next >
Encoding:
Text File  |  1993-07-15  |  588 b   |  22 lines

  1. #!/bin/csh -f
  2. # script to mung all BackSpace .o files in a directory into .BackO files
  3. # usage: convertToBackOs <directoryName>
  4. # This script is useful to convert those old 1.0 BackSpace modules into
  5. # ones that 3.0 BackSpace will find.
  6.  
  7. if ($#argv == 0) then
  8.     echo "usage: convertToBackOs <directoryName>"
  9.     echo ""
  10.     echo "    This shell script renames BackSpace v1.0's .o files so that"
  11.     echo "    they can be found and loaded by BackSpace v3.0"
  12.     echo ""
  13.     exit (1)
  14. endif
  15.  
  16. cd $1
  17.  
  18. foreach file (*View.o)
  19.     echo Converting ${file}
  20.     mv ${file} `echo ${file} | sed "s/View.o/View.BackO/"`
  21. end
  22.